package com.account.boot.commons.result;

/**
 * 返回错误码枚举类
 * @author RoZz
 *
 */
public enum ResultCodeEnum implements ResultCodeInterface{
	UNKNOW(-1,"未知异常"),
    SUCCESS(0, "success"),
    FAIL(1, "操作失败，请重试操作或联系客服人员。"),
    
    UID_EMPTY(9004,"uid为空"),
    
    ADMIN_NAME_OR_PASSWORD_EMPTY(1001,"用户名或密码为空"),
	ADMIN_IS_NOT_USER(1002,"用户名或密码错误"),
	ADMIN_GET_USERINFO_ERROR(1003,"用户不存在"),
	
	
	API_IS_NOT_USER(2002,"用户名或密码错误");
		
    private int resultCode;
    private String message;

    ResultCodeEnum(int resultCode, String message) {
        this.resultCode = resultCode;
        this.message = message;
    }

    /**
     * {@link #resultCode}的getter方法。
     */
    public int getResultCode() {
        return resultCode;
    }

    /**
     * {@link #message}的getter方法。
     */
    public String getMessage() {
        return message;
    }
}
